package or.exa.cangguan.mapper;

import io.swagger.models.auth.In;
import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.UserInfoDto;
import or.exa.cangguan.entity.po.UserInfo;
import or.exa.cangguan.entity.vo.UserInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);
    List<UserInfoDto> selectInfo(@Param("userInfoVo")UserInfoVo userInfoVo,
                                 @Param("page") Page page);

    Integer selectInfoCount(UserInfoVo userInfoVo);
    String selectByUsername(String username);

    Integer selectRoleIdByUsername(String username);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);
}